"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogTest = void 0;
const Config_1 = require("../src/config/Config");
const DateUtil_1 = require("../src/engine/utils/DateUtil");
const RandomUtil_1 = require("../src/engine/utils/RandomUtil");
class LogTest {
    constructor() {
        this.date = new Date(2025, 9, 2, 9);
        this.needTime = RandomUtil_1.default.nextInt(1000 * 60 * 25, 1000 * 60 * 60);
        this.startTime = 0;
        this.leaveTime = 0;
    }
    join() {
        this.startTime = DateUtil_1.default.now();
    }
    leave() {
        this.leaveTime = DateUtil_1.default.now() + Config_1.Config.OneDay * 30;
    }
    checkJoinServer(now) {
        // let passTime: number = now - this.startTime;
        // if (now >= this.date.getTime() && passTime >= this.needTime) {
        //     if(now >= this.leaveTime){
        //         ServerManager.instance.joinServer()
        //     }
        // }
    }
}
exports.LogTest = LogTest;
LogTest.instance = new LogTest();
